from django.conf.urls.defaults import *
from gui.views import * # welcome_view, crawler_view
from target.views import *
from analysis.views import *
from couch_docs.views import *
from browser.views import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
	  (r'couch', include('couch_docs.urls')),

	 (r'^$', welcome_view), # hello view
	 (r'^crawler$', crawler_view), #hello view
	 (r'^crawler/db/(?P<id>[\da-z]+)$', crawler_info), #hello view
	 (r'^instructions/(?P<id>(\w+))$', instructions), #hello view
   (r'^config$', config_view), # gui.view
   (r'^browser$', browser_view), # gui.view
	 (r'^browser/blog$', browser_blog), #hello view
	 (r'^browser/view/(?P<id>[\da-z]+)$', browser_info), #hello view
	 (r'^browser/note/(?P<id>[\da-z]+)$', browser_note), #hello view
	 (r'^browser/comments/(?P<id>[\da-z]+)$', browser_comments), #hello view
   (r'^analysis$', analysis_view), # gui.view
   (r'^analysis/vector$', analysis_vector_view),
   (r'^analysis/statistic$', analysis_statistic_view),
   (r'^analysis/zipf$', analysis_zipf_view),
   (r'^analysis/frequency$', analysis_frequency_view),
	 (r'^home$', welcome_view), #hello view
	 (r'^more$', crawler_view), #hello view
	 (r'^start$', welcome_view), #hello view
	 (r'^crawler/check$', crawler_check), # gui.view
	 (r'^crawler/(?P<numer>\d+)/$', crawler_view_blog), #gui.view
	 (r'^crawler/blog/(?P<id>[\da-z]+)/$', crawler_note), #gui.view
	 (r'^crawler/comment/(?P<id>[\da-z]+)/$', crawler_comment), #gui.view
	(r'^site_media/(.*)$', 'django.views.static.serve', {'document_root': 'site_media/'}),
	
    # Example:
    # (r'^bloganalisys/', include('bloganalisys.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/(.*)', admin.site.root),
)
